package com.lovo.ssc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lovo.ssc.bean.Order;
import com.lovo.ssc.vo.OrderInfoVo;
import com.lovo.sscweb.dto.OrderDto;
import com.lovo.sscweb.dto.OrderItemTo;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author lovo
 * @since 2022-07-11
 */
public interface IOrderService extends IService<Order> {
    public OrderInfoVo confirmOrder();
    public List<Order> findByItem(String userName, String startTime, String endTime);
    public OrderDto submitOrder(int addressId,int payMethod);

    public OrderInfoVo directBuy(OrderItemTo commodity);
    public OrderDto directSubmit(int addressId, int payMethod,OrderItemTo commodity);

    public int findOrderState(String orderCode);
    public void updateOrderState(String orderCode);

    public boolean consumption(int addressId, int payMethod);

    public Object getPayResult(String userName);

    public boolean directThird(int addressId, int payMethod,OrderItemTo commodity);
}
